package com.jxtc.enterprise.tenant.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "租户管理平台登录所需要传递的数据")
@Getter
@Setter
@ToString
public class TenantLoginDTO {
    @Schema(description = "手机号", example = "12345678901")
    @Size(message = "手机号必须为 11 位", min = 11, max = 11)
    private String phoneNumber;

    @Schema(description = "密码", example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;
}
